package vip.web3.api.form.user;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * aut-horlilei
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class EditForm implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "修改类型不能空")
    @Min(value = 1, message = "修改类型只能是1,2,3")
    @Max(value = 10, message = "修改类型只能是1,2,3")
    private Integer type;

    private String nick;

    private Integer gender;

    private String headUrl;

    private String mobile;

    private String password;

    private String oldPassword;

    private String confirmPassword;


}
